From: Jasper St. Pierre Date: Fri, 21 Dec 2012 16:16:52 +0000 (-0500) Subject: polkitAgent: Don't use setButtons X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5152 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4231c879efe97aa2bd780cbb7aadf46ada4fceaf;p=gnome-shell.git polkitAgent: Don't use setButtons https://bugzilla.gnome.org/show_bug.cgi?id=690594 --- diff --git a/js/ui/components/polkitAgent.js b/js/ui/components/polkitAgent.js index db32976a6..65bc6ae63 100644 --- a/js/ui/components/polkitAgent.js +++ b/js/ui/components/polkitAgent.js @@ -159,14 +159,13 @@ const AuthenticationDialog = new Lang.Class({ messageBox.add(this._nullMessageLabel); this._nullMessageLabel.show(); - this.setButtons([{ label: _("Cancel"), - action: Lang.bind(this, this.cancel), - key: Clutter.Escape - }, - { label: _("Authenticate"), - action: Lang.bind(this, this._onAuthenticateButtonPressed), - default: true - }]); + this._cancelButton = this.addButton({ label: _("Cancel"), + action: Lang.bind(this, this.cancel), + key: Clutter.Escape }); + this._okButton = this.addButton({ label: _("Authenticate"), + action: Lang.bind(this, this._onAuthenticateButtonPressed), + default: true }, + { expand: true, x_fill: false, x_align: St.Align.END }); this._doneEmitted = false;